<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>{$smarty.const.DOMAIN} feed</title>
        <link>{$smarty.const.HOST_VFRIEND}</link>
        <description>This is an example RSS feed</description>
        <language>en-us</language>
        <copyright>Copyright (C) 2012 {$smarty.const.DOMAIN}</copyright>
        {if $arrResult}
        	{foreach item=item from=$arrResult}
                <item>
                    <title><![CDATA[{$item.title}]]></title>
                    <description>
                    	<![CDATA[
                       	 	<table cellpadding="5" cellspacing="5" border="0" width="100%">
                                <tr>
                                	{if $item.image != ""}
                                    	<td width="95">
                                        	<a href="{link_blog blogid=$item.blogid title=$item.title}">{image path=$item.image id=$item.blogid title=$item.title type=3 small=1}</a>
                                       	</td>
                                   	{/if}
                                    <td>
                                    	<h4><a href="{link_blog blogid=$item.blogid title=$item.title}">{$item.title}</a></h4>
                                        <p>{$item.short}...</p>
                                        <p align="right">Đăng lúc: {$item.postdate|date_format:"%Hh%M %d/%m/%Y"}, bởi <a href="{vfriend_username userid=$item.userid viewid=0}">{$item.userid|ouser}</a></p>
                                    </td>
                                </tr>
                            </table>
                        ]]>
                  	</description>
                    <link><![CDATA[{link_blog blogid=$item.blogid title=$item.title}]]></link>
                    <pubDate><![CDATA[{$item.postdate|date_format:"%A, %d %B %Y %H:%M:%S"} +0000]]></pubDate>
                </item>
            {/foreach}
        {/if} 
    </channel>
</rss>